import { MockMethod } from 'vite-plugin-mock';
export default [
  // 下载列表
  {
    url: '/haichuan/assembly/download/list',
    method: 'get',
    response: () => {
      return {
        code: 0,
        data: {
          column: [
            { prop: 'time', label: '任务时间', sortable: false, click: false },
            { prop: 'file_name', label: '文件名称', sortable: false, click: false },
            { prop: 'status', label: '状态', sortable: false, click: false }
          ],
          datas: [
            {
              row: {
                id: 2,
                time: '2022-08-2612:34:50',
                file_name: '班级维度',
                status: '导出成功',
                url: 'https://hw.xesimg.com/app/quiz/2022/08/23/75906535_1661239612664_1661239605991.jpg'
              },
              op_group: [
                { key: 'download', value: '下载' },
                { key: 'delete', value: '删除' }
              ]
            },
            {
              row: {
                id: 1,
                time: '2022-08-2514:34:50',
                file_name: '场次维度',
                status: '导出成功',
                url: 'https://hw.xesimg.com/app/quiz/2022/08/23/75906535_1661239612664_1661239605991.jpg'
              },
              op_group: [
                { key: 'download', value: '下载' },
                { key: 'delete', value: '删除' }
              ]
            }
          ],
          page: { page: 1, pageSize: 20, total: 134 }
        },
        msg: 'success',
        trace_id: '8e3c4de5-9ecf-4c36-b1fb-1a66412222eb'
      };
    }
  },
  // 菜单权限
  {
    url: '/haichuan/assembly/getUserMenuPerm',
    method: 'get',
    response: () => {
      return {
        code: 0,
        data: [
          {
            lid: '1ea53f13b85e42ba86b801282e7106d4',
            name: '数据概览',
            plid: '0',
            type: 0,
            url: '/'
          },
          {
            children: [
              {
                lid: '0f35253d050c4f1eade069d9c99cba4d',
                name: '行课数据',
                plid: '1ea53f13b82e423a86b801242e710213',
                type: 1,
                url: '/dataBoard/longBehaviorData'
              },
              {
                lid: '36cb1410791740a1b729f11548a34649',
                name: '触达数据',
                plid: '1ea53f13b82e423a86b801242e710213',
                type: 1,
                url: '/dataBoard/longRachData'
              }
              // {
              //   lid: 'f8f4c3b159414cecb99eadb1fbb0fd88',
              //   name: '续报数据',
              //   plid: '1ea53f13b82e423a86b801242e710213',
              //   type: 1,
              //   url: '/dataBoard/longChangeData'
              // }
            ],
            lid: '1ea53f13b82e423a86b801242e710213',
            name: '长期班',
            plid: '0',
            type: 0,
            url: '/longClass'
          },
          {
            children: [
              {
                lid: '0568ed149bcd4e94aadcb5d5507d62f0',
                name: '行课数据',
                plid: '32a53f15b82e423a8fqb80122e710344',
                type: 1,
                url: '/dataBoard/shortBehaviorData'
              },
              {
                lid: '2ff6ea87b19441a7818ba120375cc6ad',
                name: '续报数据',
                plid: '32a53f15b82e423a8fqb80122e710344',
                type: 1,
                url: '/dataBoard/shortChangeData'
              },
              {
                lid: '4e4fd004f44844698769dc3c48b69e63',
                name: '触达数据',
                plid: '32a53f15b82e423a8fqb80122e710344',
                type: 1,
                url: '/dataBoard/shortRachData'
              }
            ],
            lid: '32a53f15b82e423a8fqb80122e710344',
            name: '短期班',
            plid: '0',
            type: 0,
            url: '/shortClass'
          }
        ],
        msg: 'success',
        trace_id: ''
      };
    }
  }
] as MockMethod[];
